#!/usr/bin/env python3
# -*- coding: utf-8 -*-

print('九九乘法表')
for i in range(1,10):
    for j in range(1, i+1):
        print('%d X %d = %d' % (j, i, i*j), end=' ')
    print()

# print("1x1=1")
# print("1X2=2")

# print("Hello world")

import math

def plot(f):
    for i in range(1, 100):
        for j in range(-100, 100):
            if j/100 <= f(i/10):
                print('+', end='')
            else:
                print('-', end='')
        print()

def f(x):
    return x**0.3

plot(f)

